﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChangePwd.aspx.cs" Inherits="syc.ChangePwd" %>
<html>
<body>
<script type="text/javascript" language="javascript" src="/common.js"></script>

    <form id="form1" runat="server">
    <div id="wintop" class="wintop">修改密码</div>
    <asp:Panel ID="Panel1" runat="server" CssClass="panel">
        原密码：<asp:TextBox ID="Pwd1" runat="server" CssClass="intxt1" Width="120px" 
            TextMode="Password"></asp:TextBox>
        新密码：<asp:TextBox ID="Pwd2" runat="server" CssClass="intxt1" Width="120px"
            TextMode="Password"></asp:TextBox>
        再输一次新密码：<asp:TextBox ID="Pwd3" runat="server" CssClass="intxt1" Width="120px"
            TextMode="Password"></asp:TextBox>
        <asp:Button ID="Button_Save" runat="server" Text="修 改" CssClass="button" 
            onclick="Button_Save_Click" />
    </asp:Panel>
    <asp:Panel ID="Panel2" runat="server" CssClass="panel2">
        <asp:Label ID="Message" runat="server" Text="·密码为6～20位字母、数字组合，注意两次输入的新密码要一致" CssClass="prompt"></asp:Label>
    </asp:Panel>

    </form>
<script>
    var textboxs = document.getElementsByTagName("input");
    var i;
    for (i = 0; i < textboxs.length; i++) {
        if (textboxs[i].className == "textbox") {
            textboxs[i].onchange = function(e) { this.className = "textbox-changed"; };
            textboxs[i].onfocus = function(e) { this.select(); };
        }
       
    }
</script>
</body>
</html>
